Note
Go to the end to download the full example code
Digital Twin Animated#
An animated gif of the real and simulated images taken by POGS
Loading star catalog: 2.15e+00 seconds
Applying 2.02e-02 deg of refraction
14.928214327854475 -0.1147864105658822
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.54 pixels
Performing the QUEST fit with 51 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.02 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.35e+00 seconds
Applying 2.02e-02 deg of refraction
14.928214327854475 -0.1147864105658822
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.54 pixels
Performing the QUEST fit with 51 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.02 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.30e+00 seconds
Applying 2.02e-02 deg of refraction
14.928214327854475 -0.1147864105658822
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.54 pixels
Performing the QUEST fit with 51 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.02 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.06e+00 seconds
Applying 2.02e-02 deg of refraction
14.928214327854475 -0.1147864105658822
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.54 pixels
Performing the QUEST fit with 51 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.02 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.11e+00 seconds
Applying 2.02e-02 deg of refraction
15.107264780372955 -0.06622771492824948
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.51 pixels
Performing the QUEST fit with 48 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.21 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.14e+00 seconds
Applying 2.02e-02 deg of refraction
15.077224092049319 0.031546473653258245
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.62 pixels
Performing the QUEST fit with 45 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.21 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.09e+00 seconds
Applying 2.02e-02 deg of refraction
15.325800196593695 0.04695860945139421
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.43 pixels
Performing the QUEST fit with 44 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.53 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.25e+00 seconds
Applying 2.02e-02 deg of refraction
15.165312789940383 -0.07920454003176361
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.53 pixels
Performing the QUEST fit with 80 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.28 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.13e+00 seconds
Applying 2.02e-02 deg of refraction
15.195591876007368 0.026808524970295636
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.65 pixels
Performing the QUEST fit with 47 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.23 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.17e+00 seconds
Applying 2.02e-02 deg of refraction
14.694519178545992 -0.006668558308972685
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.96 pixels
Performing the QUEST fit with 42 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.12 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.09e+00 seconds
Applying 2.02e-02 deg of refraction
15.048745721797449 -0.036337511920954524
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.36 pixels
Performing the QUEST fit with 52 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.17 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.17e+00 seconds
Applying 2.02e-02 deg of refraction
15.189116428161576 0.0824716181823033
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.62 pixels
Performing the QUEST fit with 37 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.07 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.22e+00 seconds
Applying 2.02e-02 deg of refraction
14.986372555488547 0.06038713978897526
[15.0344707, -0.0053005]
BEFORE QUEST: median error 73.33 pixels
Performing the QUEST fit with 50 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.16 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.09e+00 seconds
Applying 2.02e-02 deg of refraction
15.235990014758935 -0.03137822958596863
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.03 pixels
Performing the QUEST fit with 72 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.15 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.76e+00 seconds
Applying 2.02e-02 deg of refraction
15.014262000190264 0.09883587276929834
[15.0344086, -0.0052628]
BEFORE QUEST: median error 72.91 pixels
Performing the QUEST fit with 40 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.14 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.12e+00 seconds
Applying 2.02e-02 deg of refraction
14.831824697409772 0.045674887721592505
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.07 pixels
Performing the QUEST fit with 76 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.67 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.14e+00 seconds
Applying 2.02e-02 deg of refraction
15.253766804744249 -0.2036124608067469
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.25 pixels
Performing the QUEST fit with 88 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.22 pixels
Objects in frame 1:
TELSTAR 19V
SL-8 R/B
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.12e+00 seconds
Applying 2.02e-02 deg of refraction
14.670692337272575 -0.0003831291109028454
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.07 pixels
Performing the QUEST fit with 79 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.64 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.21e+00 seconds
Applying 2.02e-02 deg of refraction
14.999727651274648 -0.03277373721402287
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.25 pixels
Performing the QUEST fit with 55 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.25 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.44e+00 seconds
Applying 2.02e-02 deg of refraction
15.128615333712315 -0.10403169386860485
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.29 pixels
Performing the QUEST fit with 99 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.71 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.10e+00 seconds
Applying 2.02e-02 deg of refraction
14.674481909236045 0.09038834823983724
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.63 pixels
Performing the QUEST fit with 35 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.37 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.25e+00 seconds
Applying 2.02e-02 deg of refraction
15.265093250711805 0.11897240467082254
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.73 pixels
Performing the QUEST fit with 46 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.19 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.69e+00 seconds
Applying 2.02e-02 deg of refraction
15.514459221808576 0.030063598422443855
[15.0344086, -0.0052628]
BEFORE QUEST: median error 73.65 pixels
Performing the QUEST fit with 42 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.35 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.13e+00 seconds
Applying 2.02e-02 deg of refraction
15.111602564461029 -0.16307765576818956
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.70 pixels
Performing the QUEST fit with 72 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.31 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 2.64e+00 seconds
Applying 2.02e-02 deg of refraction
15.27491390392919 -0.24432954735182666
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.33 pixels
Performing the QUEST fit with 65 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.38 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.20e+00 seconds
Applying 2.02e-02 deg of refraction
14.982402959804551 -0.03661552186111537
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.52 pixels
Performing the QUEST fit with 104 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.40 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.40e+00 seconds
Applying 2.02e-02 deg of refraction
14.940306396563289 -0.008248486289603209
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.41 pixels
Performing the QUEST fit with 41 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.08 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.54e+00 seconds
Applying 2.02e-02 deg of refraction
15.235924121095708 -0.03221170136747743
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.32 pixels
Performing the QUEST fit with 64 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.09 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.21e+00 seconds
Applying 2.02e-02 deg of refraction
15.017121127058907 -0.03223416574414536
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.18 pixels
Performing the QUEST fit with 83 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.17 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.38e+00 seconds
Applying 2.02e-02 deg of refraction
15.181033703571835 0.02122355710093279
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.52 pixels
Performing the QUEST fit with 50 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.27 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.15e+00 seconds
Applying 2.02e-02 deg of refraction
14.776247609025477 -0.2099393038617342
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.07 pixels
Performing the QUEST fit with 81 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.57 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.54e+00 seconds
Applying 2.02e-02 deg of refraction
15.217251972256193 -0.06818213575493652
[15.0343527, -0.0052252]
BEFORE QUEST: median error 72.74 pixels
Performing the QUEST fit with 64 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 0.99 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.51e+00 seconds
Applying 2.02e-02 deg of refraction
14.776847600539584 -0.016582191431903953
[15.0343527, -0.0052252]
BEFORE QUEST: median error 73.25 pixels
Performing the QUEST fit with 61 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 0.98 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.10e+00 seconds
Applying 2.02e-02 deg of refraction
15.19108922929227 0.12491188731985631
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.57 pixels
Performing the QUEST fit with 44 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 0.78 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.29e+00 seconds
Applying 2.02e-02 deg of refraction
14.908454815713128 -0.1566347971567715
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.17 pixels
Performing the QUEST fit with 108 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.33 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.19e+00 seconds
Applying 2.02e-02 deg of refraction
15.177934486329708 -0.025973294868827348
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.19 pixels
Performing the QUEST fit with 67 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.01 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.07e+00 seconds
Applying 2.02e-02 deg of refraction
15.01866676552333 -0.20258626409323263
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.08 pixels
Performing the QUEST fit with 106 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.45 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.12e+00 seconds
Applying 2.02e-02 deg of refraction
15.252690677736528 -0.22225935312441047
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.15 pixels
Performing the QUEST fit with 111 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.15 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.27e+00 seconds
Applying 2.02e-02 deg of refraction
-15.11387572509991 -0.27409707536596584
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.34 pixels
Performing the QUEST fit with 37 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 0.92 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.37e+00 seconds
Applying 2.02e-02 deg of refraction
14.76747419430582 0.09970319896761252
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.34 pixels
Performing the QUEST fit with 50 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.22 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.23e+00 seconds
Applying 2.02e-02 deg of refraction
14.96854158961412 -0.0627356138909004
[15.0342906, -0.0051875]
BEFORE QUEST: median error 73.09 pixels
Performing the QUEST fit with 106 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.15 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.09e+00 seconds
Applying 2.02e-02 deg of refraction
15.03563763978573 0.02670164867707299
[15.0342906, -0.0051875]
BEFORE QUEST: median error 72.81 pixels
Performing the QUEST fit with 61 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 0.88 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.36e+00 seconds
Applying 2.02e-02 deg of refraction
15.114292366684673 0.002504454169423747
[15.0342906, -0.0051875]
BEFORE QUEST: median error 72.87 pixels
Performing the QUEST fit with 112 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.20 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.63e+00 seconds
Applying 2.02e-02 deg of refraction
15.13765288224165 -0.01505480983145848
[15.0342285, -0.0051499]
BEFORE QUEST: median error 73.20 pixels
Performing the QUEST fit with 65 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.56 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.09e+00 seconds
Applying 2.02e-02 deg of refraction
15.152681866227594 0.0006963905781173969
[15.0342285, -0.0051499]
BEFORE QUEST: median error 73.16 pixels
Performing the QUEST fit with 85 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.27 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.44e+00 seconds
Applying 2.02e-02 deg of refraction
15.00244682187002 -0.17927944519362243
[15.0342285, -0.0051499]
BEFORE QUEST: median error 73.08 pixels
Performing the QUEST fit with 77 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.46 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.21e+00 seconds
Applying 2.02e-02 deg of refraction
15.090060143478597 0.13217064377194204
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.56 pixels
Performing the QUEST fit with 40 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.16 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.15e+00 seconds
Applying 2.02e-02 deg of refraction
15.156851131551981 0.12696269385770942
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.80 pixels
Performing the QUEST fit with 40 stars
Applying a 0.03 degree rotation to the telescope orientation
AFTER QUEST: median error 1.03 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.36e+00 seconds
Applying 2.02e-02 deg of refraction
15.21763649670665 -0.006377921154367517
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.98 pixels
Performing the QUEST fit with 52 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.09 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.24e+00 seconds
Applying 2.02e-02 deg of refraction
15.224323531196895 -0.017053754616164474
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.73 pixels
Performing the QUEST fit with 50 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.16 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.79e+00 seconds
Applying 2.02e-02 deg of refraction
15.18096209156645 -0.15307014443068534
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.47 pixels
Performing the QUEST fit with 54 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.29 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.22e+00 seconds
Applying 2.02e-02 deg of refraction
15.163194404328634 0.04824884102776728
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.64 pixels
Performing the QUEST fit with 47 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.17 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.22e+00 seconds
Applying 2.02e-02 deg of refraction
14.918912857538874 0.08492886018563123
[15.0342285, -0.0051499]
BEFORE QUEST: median error 72.90 pixels
Performing the QUEST fit with 36 stars
Applying a 0.02 degree rotation to the telescope orientation
AFTER QUEST: median error 1.19 pixels
Objects in frame 1:
TELSTAR 19V
LDPE-2
TELSTAR 14R
Synthesizing CCD Image: 1.50e+00 seconds
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.animation import FuncAnimation
import mirage as mr
from digitaltwin import generate_matched_image
# info_path = "/Users/liamrobinson/Library/CloudStorage/OneDrive-purdue.edu/2022-09-18_GPS_PRN14/ObservationData.mat"
# info_path = '/Users/liamrobinson/Library/CloudStorage/OneDrive-purdue.edu/2023-05-29 Telstar 19V/ObservationData.mat'
info_path = "/Users/liamrobinson/Documents/mirage/digitaltwin/data/ObservationData.mat"
add_distortion = True
add_refraction = True
limiting_magnitude = 14.0
station = mr.Station()
station.telescope.fwhm = 3.0
mr.tic("Loading star catalog")
catalog = mr.StarCatalog("gaia", station, mr.now(), aberration=False)
mr.toc()
fig = plt.figure()
plt.subplot(1, 2, 1)
im_obs = plt.imshow(np.eye(4096), cmap="gray")
plt.gca().get_xaxis().set_visible(False)
plt.gca().get_yaxis().set_visible(False)
plt.title("Observed")
plt.subplot(1, 2, 2)
im_synth = plt.imshow(np.eye(4096), cmap="gray")
plt.title("Synthetic")
plt.gca().get_xaxis().set_visible(False)
plt.gca().get_yaxis().set_visible(False)
plt.tight_layout()
def animate(i):
res = generate_matched_image(
info_path,
i,
station,
catalog,
add_distortion,
add_refraction,
limiting_magnitude,
)
br_variance = 150
img_synth = np.log10(np.clip(np.random.poisson(res['img_sym'] + br_variance) - br_variance, 1, np.inf))
img = np.log10(np.clip(res["img"] - int(1e3), 1, np.inf))
plt.subplot(1, 2, 1)
im_obs.set_data(img)
plt.clim(img.min(), img.max())
plt.subplot(1, 2, 2)
im_synth.set_data(img_synth)
plt.clim(img.min(), img.max())
return im_obs, im_synth
frames = 50
fps = 5
anim = FuncAnimation(fig, animate, frames=frames, interval=1000 / fps, blit=True)
anim.save("synth_imgs.gif")
Total running time of the script: (27 minutes 41.903 seconds)